# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer:
pkgname=stalld
pkgver=1.6
pkgrel=0
pkgdesc="daemon that finds starving tasks and gives them a temporary boost"
url="https://git.kernel.org/pub/scm/utils/stalld/stalld.git/"
arch="all !mips64" # missing sched_getattr/sched_setattr syscalls
license="GPL-2.0-or-later"
makedepends="linux-headers"
options="!check" # no make test
subpackages="$pkgname-doc"
source="https://git.kernel.org/pub/scm/utils/stalld/stalld.git/snapshot/stalld-$pkgver.tar.gz
	fix-test01.patch
	fix-on_exit.patch"

build() {
	make
}

package() {
	make BINDIR=/usr/sbin DESTDIR=$pkgdir install
	rm -rf $pkgdir/usr/share/doc
	rm -rf $pkgdir/usr/share/licenses
}

sha512sums="34d01d4e7ac09863eda90f9eb9f34b2652e0c4862dca6efa6cc4028022085237d8d67461a9f9c692950c9c6b8a0c334163ef3f59d31046e3010cee8304629028  stalld-1.6.tar.gz
2595a74564868683145cb748cfb8be6062bdc80373266373bc73491b2cb59dc6152c1fd15d36b13b1040c15f0031158531212082349f2360a6988f68e8af5ad3  fix-test01.patch
599d4bd5d53b3218f7aabf3409568c530aecac4c3ceb1b9771eb94c0312aaae41ed67af65f26f4c01679344184ea4fe7bddb0ac6c5395a7fcde075e59eef5237  fix-on_exit.patch"
